package com.hrp.hrpdao;

import com.hrp.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by Administrator on 2018/8/5 0005.
 */
@Mapper
public interface UserDao {

    @Select("select * from HRP_User where username=#{username}")
    User findUserByUserName(@Param("username")String username);

    @Select("select * from HRP_User")
    List<User> getAllUsers();



}
